<?php

namespace Fize\Think\Develop;


use think\facade\Session;

/**
 * 应用
 */
trait ApplicationTrait
{
    public static function withSession(array $data)
    {
        foreach ($data as $key => $value) {
            Session::set($key, $value);
        }
    }

    public static function clearSession()
    {
        Session::clear();
    }
}
